@import '@/styles/common/variables.scss';
@import './phone_list.scss';
#list_article{
  min-height: inherit;
  box-sizing: content-box;

  // 顶部的图片
  .list_article_img{
    width: 100%;
    padding-bottom: 16.7%;
    height: 0;
  }
  // 导航
  .list_article_navigation{
    width: 100%;
    text-align: center;
    font-size: 0;
    border-bottom: 1px solid #F2F1F0;
    position: sticky;
    // top: $menuHeight;
    top: 0;
    background-color: #FFF;
    z-index: 10;
    >a{
      display: inline-block;
      color: #7E7E7E;
      font-size: 20px;
      cursor: pointer;
      margin-right: 56px;
      height: 80px;
      line-height: 80px;
      text-decoration: none;
      position: relative;
      &:last-of-type{
        margin-right: 0;
      }
      &::after{
        content: '';
        position: absolute;
        height: 2px;
        width: 100%;
        background: #7e7e7e;
        bottom: 0;
        left: 0;
        z-index: 10;
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transition: .3s ease-out;
        transition: .3s ease-out;
      }
      &:hover{
        color: #7e7e7e;
        &::after{
          transform: scaleX(1);
        }
      }
      &.active{
        color: #363434;
        position: relative;
        &::after {
          background: #363434;
          -webkit-transform: scaleX(1);
          transform: scaleX(1);
        }

      }
    }
  }
  .minwidth{
    display: flex;
    align-items: flex-start;
  }
  // PC 隐藏
  .article_menu_header,.article_cur_path{
    display: none;
  }
  .menuShow{
    // position: fixed;
    // top:  calc(50vw + 32px);
    width: 192px;
    height: auto;
    .el-menu{
      border: none;
      .el-menu-item{
        padding-left: 0px !important;
        a{
          color: #373737;
          font-size: 14px;
          text-decoration: none;
          width: 100%;
          height: 100%;
          display: inline-block;
          padding-left: 16px;
        }
        &:hover{
          background-color: #ffffff;
          a{
            color: #363434;
            font-weight: bold;
          }
        }
        &.is-active {
          background-color: #ffffff;
          color: #363434;
          font-weight: bold;
        }
      }
    }
  }
  .list_article_content{
    min-height: 200px;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 56px;
    .list_article_item{
      cursor: pointer;
      margin-top: 24px;
      width: calc(27.8% - 22px);
      display: inline-block;
      vertical-align: top;
      font-size: 0;
      &:nth-of-type(3n+1){
        margin-right: 22px;
      }
      &:nth-of-type(3n+2){
        margin: 24px 11px 0;
      }
      &:nth-of-type(3n){
        margin-left: 22px;
      }
      &.style1{
        width: calc(41.6% - 22px);
        .list_article_item_image{
          padding-bottom: 49.5%;
        }
      }
      .list_article_item_image{
        width: 100%;
        padding-bottom: 75%;
        height: 0;
        font-size: 0;
        position: relative;
        overflow: hidden;
        &:hover{
          a{
            transform: scale(1.12);
          }
          
        }
        >a{
          background-size: cover;
          background-repeat: no-repeat;
          background-position:center;
          transition: .6s ease-in-out;
          width: 100%;
          height: 100%;
          display: inline-block;
          position: absolute;
          top: 0;
          left: 0;
        }
      }

      // 浏览量
      .num{
        white-space: nowrap;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 38px;
        margin-top: 8px;
        >span{
          color: #363434;
          font-size: 14px;
        }
        >p{
          >span{
            >i{font-size: 14px;color: #CDCDCD;margin-right: 4px;}
            color: #CDCDCD;font-size: 14px;margin-left: 12px;
            &:hover{
              color: #363434;
              i{ color: #363434}
            }
          }

        }
      }
      .title{
        color:#363434;
        font-size: 20px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp:2;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        margin-bottom: 8px;
      }
      .label{
        margin-top: 8px;
        >span{
          display: inline-block;
          height: 28px;
          padding: 0 10px;
          border-radius: 2px;
          line-height: 28px;
          margin-right: 8px;
          color: #7E7E7E;
          font-size: 14px;
          margin-top: 8px;
          background-color: #F2F1F0;
          &:hover{
            background-color: #CDCDCD;
            color: #363434;
          }
        }
      }
    }
    .more{
      clear: both;
      text-align: center;
      margin-bottom: 40px;
      .el-button{
        width: 160px;
        height: 32px;
        line-height: 32px;
        border-radius: 20px;
        padding: 0;
      }
    }
  }

  .article_cur_path{
    padding: 0 20px;
    margin-bottom: 8px;
    color: #363434;
    font-size: 16px;
    font-weight: 700;
  }
}
.article_menu{
  right: 0px;
  left: auto !important;
  z-index: 20 !important;
  .el-menu--popup{
    min-width: 120px;
    .el-menu-item{
      a{
        text-decoration: none;
        color: #363434;

      }
    }
  }
}


#rampow  #app  #list_article .el-menu.article_menu_header{
  position: fixed;
  top: $menuPhoneHeight !important;
  width: 100%;
  padding: 0 20px;
  background-color: transparent;
  background-color: #ffffff;
  border-bottom: 1px solid #EBEAEA !important;
  z-index: 10;
  .el-menu-item,
  .el-submenu ,.el-submenu__title {
    background-color: transparent;
    height: 44px;
    line-height: 44px;
    width: 100%;
    position: relative;
    padding-left: 0;
    color: #363434;
  }
  .el-submenu{
    &.is-active{
      .el-submenu__title{
        border: none;
      }
    }
  }
  .el-submenu__icon-arrow{
    font-size: 14px;
    color: #363434;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -8px;
    margin-left: 0;
  }
  .el-menu--horizontal.article_menu{
    left: 0 !important;
    width: 100%;
    // top: 95px !important;
    z-index: 20 !important;
    box-shadow: 0 4px 8px 0 rgba(54, 52, 52, 0.08);
    ul{
      padding: 0px 20px;
      margin-top: 0;
      box-shadow: none;
      .el-menu-item{
        height: 56px;
        line-height: 56px;
        color: #363434;
        font-size: 14px;
        border-bottom: 1px solid #F2F1F0;
        &:last-of-type{
          border-bottom:none;
        }
        &:hover{ background-color: transparent;}
        &.is-active{
          font-weight: 700;
        }
  
      }
    }
  
  }
}

.list_article_item{
  opacity: 0.7;
  
  -webkit-transition: -webkit-transform ease .8s;
  transition: -webkit-transform ease .8s;
  -o-transition: -o-transform ease .8s;
  -moz-transition: transform ease .8s,-moz-transform ease .8s;
  transition: transform ease .8s;
  transition: transform ease .8s,-webkit-transform ease .8s,-moz-transform ease .8s,-o-transform ease .8s;
  transition: transform ease .8s,-webkit-transform ease .8s;
  &:nth-of-type(3n + 1){
    -webkit-transform: translateY(100px);
    -moz-transform: translateY(100px);
    -ms-transform: translateY(100px);
    -o-transform: translateY(100px);
    transform: translateY(100px);
  }
  &:nth-of-type(3n + 2){
    -webkit-transform: translateY(200px);
    -moz-transform: translateY(200px);
    -ms-transform: translateY(200px);
    -o-transform: translateY(200px);
    transform: translateY(200px);
  }
  &:nth-of-type(3n ){
    -webkit-transform: translateY(300px);
    -moz-transform: translateY(300px);
    -ms-transform: translateY(300px);
    -o-transform: translateY(300px);
    transform: translateY(300px);
  }
  &.visible{
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0px);
    -o-transform: translateY(0px);
    transform: translateY(0px);
  }


}
.list_article_content .list_article_item{
  @include respond('768'){
    -webkit-transform: translateY(80px);
    -moz-transform: translateY(80px);
    -ms-transform: translateY(80px);
    -o-transform: translateY(80px);
    transform: translateY(80px);
    opacity: 0.7;
      &.visible{
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px);
      }
  }
}